package com.bh.order.mapper;

import com.bh.common.basemapper.RootMapper;
import com.bh.order.domain.JcOrderProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单货品明细Mapper接口
 *
 * @author slx
 * @date 2023-04-22
 */
@Mapper
public interface JcOrderProductMapper extends RootMapper<JcOrderProduct> {

    /**
     * 查询订单货品明细列表
     *
     * @param jcOrderProduct 订单货品明细
     * @return 订单货品明细集合
     */
    public List<JcOrderProduct> selectJcOrderProductList(JcOrderProduct jcOrderProduct);

    /**
     * 查询订单货品明细列表
     *
     * @param jcOrderProduct 订单货品明细
     * @return 订单货品明细集合
     */
    public List<JcOrderProduct> selectJcOrderProductListByOrderId(Long orderId);

    /**
     * 基于 orderId 数组 的删除方法
     */
    public int deleteByOrderIds(@Param("orderIds")List<Long> orderIds);
}
